import React from 'react'
import { Route, useNavigate ,Link } from "react-router-dom";
import {Button} from 'antd'
function Login() {
    const navigate = useNavigate()
	const handleGoTo = () => {
        navigate('/admin/dashboard')
        localStorage.setItem('aaa','aaa')
    }
    return (
        <div>
          <Button onClick={handleGoTo} type='primary'>跳转</Button>
          {/* <Link to = '/404'>跳转</Link> */}
        </div>
    )
}
export default Login
